package com.example.feign.feign.fallback;

import com.example.feign.feign.SysFeign;
import com.example.feign.util.Response;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

@Component
public class SysFallback implements SysFeign {
    @Override
    public Response imageUpload(MultipartFile file) {
        Response response = new Response();
        response.setMsg("服用调用失败");
        response.setStatus(500);
        response.setData(null);
        return response;
    }
}
